<template>
  <van-nav-bar
    fixed
    z-index="3"
    :title="title"
    left-text="返回"
    left-arrow
    @click-left="routerBack"
  />
</template>

<script>
export default {
  name: 'NavBar',
  props: {
    title: String
  },
  methods: {
    routerBack() {
      this.$router.back()
    }
  }
}
</script>

<style scoped lang="scss">
::v-deep .van-nav-bar {
    .van-icon,
    .van-nav-bar__text {
        color: #000;
    }
}
</style>
